package com.ruoyi.web.controller.drug;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.drug.domain.DrugSupplier;
import com.ruoyi.drug.service.IDrugSupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/drug/recipt")
public class DrugSupplierController extends BaseController {
    @Autowired
    private IDrugSupplierService drugSupplierService;

    @PreAuthorize("@ss.hasPermi('drug:supplier:list')")
    @GetMapping("/listSupplier")
    public AjaxResult list(){
        List<DrugSupplier> list = drugSupplierService.selectSupplierList();
        return success(list);
    }
}
